package com.zelin.service.impl;

import com.zelin.mapper.StudentMapper;
import com.zelin.pojo.Student;
import com.zelin.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    //1. 查询所有学生
    @Override
    public List<Student> findAll() {
        return studentMapper.selectByExample(null);
    }


}

